package ru.dc.object.events.download;

import ru.dc.object.DownloadItem;

/**
 * Created by IntelliJ IDEA.
 * User: deady
 * Date: 02.11.2010
 * Time: 23:10:30
 * To change this template use File | Settings | File Templates.
 */
public class DownloadQueueEvent {

    public static final int ITEM_ADDED = 0;
    public static final int ITEM_REMOVED = 1;
    public static final int ITEM_CONNECTING = 2;
    public static final int ITEM_DOWNLOADING = 3;
    public static final int ITEM_DOWNLOADED = 4;

    private int operation;
    private long downloaded;
    private DownloadItem item;

    public int getOperation() {
        return operation;
    }

    public void setOperation(int operation) {
        this.operation = operation;
    }

    public DownloadItem getItem() {
        return item;
    }

    public void setItem(DownloadItem item) {
        this.item = item;
    }

    public long getDownloaded() {
        return downloaded;
    }

    public void setDownloaded(long downloaded) {
        this.downloaded = downloaded;
    }
}
